package com.atguigu.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 琉
 * @create 2021-08-13 22:59
 */
@RestController
public class Quick2Controller {

    @Value("${person.name}")
    private String name;
    @Value("${person.age}")
    private String age;

    @RequestMapping("/quick2")
    public String quick(){
        return "名字:"+name+";年龄:"+age;
    }


}
